<template>
  <div class="login">
    <div class="logo">
      <img src="@/assets/img/login/logo.png" alt="caika">
    </div>
    <div class="home-content clearfix">
      <div class="content">
        <div class="title">账号密码登录</div>
        <div class="step-content">
          <p>账号</p><input type="text" v-model.trim="account">
          <p>密码</p><input type="password" v-model.trim="pwd">

          <div @click="check=!check" class="checkbox-block">
            <div class="checkbox-box"><span v-show="check"></span></div>
            <span class="rember-me">记住我的登录信息</span>
          </div>

          <div class="center center-btn" @click="submit">
            <span>登&nbsp;&nbsp;&nbsp;录</span>
          </div>
        </div>
      </div>
      <div>
        <img src="@/assets/img/login/picture.png" alt class="right-img">
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      check:true,
      account:"",
      pwd:"",
    };
  },
  methods:{
    submit:function(){
      
    }
  }
};
</script>

<style lang="less" scoped>
.login {
  background: #F2FEFF;
  min-height:100vh;
  position: relative;
  .home-content{
    width: 1100px;
    padding-bottom: 150px;
  }
  .logo {
    width: 100%;
    text-align: center;
    padding-top: 10vh;

    img {
      width: 182px;
    }
  }

  .content {
    float: left;
    width: 400px;
    background: #ffffff;
    box-shadow: 0px 0px 20px 2px rgba(119,160,208,0.3);
    margin-top: 124px;
    padding-bottom: 30px;

    .title {
      line-height: 54px;
      font-size: 16px;
      border-bottom: 1px solid #EDEDED;
      padding: 0;
      text-align: center;
      color: #333333;
      font-weight: 500;
    }

    .step-content {
      width: 330px;
      margin: auto;

      p {
        margin: 20px 0 6px;
        color: #666666;
        font-size: 10px;
      }

      input {
        display: block;
        width: 100%;
        height: 30px;
        background: rgba(255, 255, 255, 1);
        border: 1px solid rgba(221, 221, 221, 1);
        box-sizing: border-box;
        padding-left: 10px;
        outline: none;
        margin-bottom: 10px;
      }
      .checkbox-block{
        /*勾选框*/
        .checkbox-box {
          display: inline-block;
          width: 15px;
          height: 15px;
          margin-right: 10px;
          position: relative;
          border: 1px solid #DDDDDD;
          vertical-align: middle;
          
        }

        /*勾勾*/
        .checkbox-box span {
          width: 5px;
          height: 13px;
          border-right: 3px solid #1068cf;
          border-bottom: 3px solid #0068cf;
          transform: rotate(45deg);
          position: absolute;
          top: -4px;
          right: 0;
        }
        .rember-me{
          line-height: 28px;
          color: #666666;
          font-size: 12px;
        }
        &:hover{
          cursor: pointer;
        }
      }
      

      .center-btn {
        padding-top: 30px;

        span {
          width: 200px;
          display: inline-block;
          background: #3478c9;
          color: white;
          padding: 10px 20px;
          border-radius: 2px;
        }
      }

    }
  }

  .right-img {
    float: right;
    width: 500px;
  }
}
</style>
